import request from '@/utils/request'

//微信群二维码列表
export function qrcodeList(query) {
  return request({
    url: '/wechat/group/qrcode/list',
    method: 'get',
    params: query
  })
}
// 新增微信群二维码
export function addQrcode(data) {
  return request({
    url: '/wechat/group/qrcode',
    method: 'post',
    data
  })
}
// 查询打卡活动详情
export function qrcodeDetail(id) {
  return request({
    url: '/wechat/group/qrcode/' + id,
    method: 'get',
  })
}
// 修改微信群二维码
export function editQrcode(data) {
  return request({
    url: '/wechat/group/qrcode',
    method: 'put',
    data: data
  })
}

// 批量下载微信群二维码
export function batchDownload(query) {
    return request({
      url: '/wechat/group/qrcode/batchDownload',
      method: 'get',
      params: query
    })
  }

//修改首页显示状态
export function changeShowFlag(data) {
  return request({
    url: '/wechat/group/qrcode/changeShowFlag',
    method: 'put',
    data: data
  })
}

